package com.wz.jiangsu.bean;

public class MyData {
    private String name;
    private int value;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"name\":\"")
                .append(name).append('\"');

        sb.append(",\"value\":")
                .append(value);

        sb.append('}');
        return sb.toString();
    }

    // getter and setter
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
